<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html">
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title></title>
</head>
<body erke-hide>
</body>
<script>
/**
 * @param {number} m
 * @param {number} n
 * @param {number[][]} ops
 * @return {number}
 */
var maxCount = function(m, n, ops) {
	var min=[m,n];
	for(var i in ops){
		if(ops[i][0]<min[0]){
			min[0]=ops[i][0]
		};
		if(ops[i][1]<min[1]){
			min[1]=ops[i][1]
		};
	};
	console.log(min[0]*min[1]);
	return min[0]*min[1];
};
var res=new maxCount(3,3, [[16,1],[14,3],[14,2],[4,1],[10,1],[11,1],[8,3],[16,2],[13,1],[8,3],[2,2],[9,1],[3,1],[2,2],[6,3]]);
</script>
</html>